<template>
  <refresh @update="onUpdate" />
</template>
<script setup>
import refresh from '@/components/icon-refresh.vue'
import { useDataSourceManager, useQuery } from './provide-context.js'
/**
 * 全局数据
 */

let { update } = useDataSourceManager()
let query = useQuery()
function onUpdate() {
  query.value.current = 1
  query.value.pageSize = 10
  update()
}
</script>
